﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Cashier_Model
{
    [TableAttribute(Tablename = "category")]
    public class Category: BaseModel
    {
        private Int64 id;

        [TableAttribute(Columnname="id", Columntype="bigint", Iskey=true, Iscondition=true, Fieldothername="c", Isdeletefield=true)]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String name;

        [TableAttribute(Columnname="name", Columntype="varchar", Isupdatefield=true)]
        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        private String description;

        [TableAttribute(Columnname = "description", Columntype = "varchar", Isupdatefield = true)]
        public String Description
        {
            get { return description; }
            set { description = value; }
        }

        private Int64 parentid;

        [TableAttribute(Columnname = "parent_id", Columntype = "bigint", Isupdatefield = true, Iscondition = true, Fieldothername = "c")]
        public Int64 Parentid
        {
            get { return parentid; }
            set { parentid = value; }
        }

        private Int32 orderno;

        [TableAttribute(Columnname="orderno", Columntype="int", Isupdatefield=true)]
        public Int32 Orderno
        {
            get { return orderno; }
            set { orderno = value; }
        }

        private String parentname;

        [TableAttribute(Columnname="parentname", Columntype="varchar")]
        public String Parentname
        {
            get { return parentname; }
            set { parentname = value; }
        }
    }
}
